﻿#region

using FluentNHibernate.Mapping;

#endregion

namespace MediaSage.Lib.Database
{
    public class ImageMap : ClassMap<ImageEntity>
    {
        #region Constructors

        public ImageMap()
        {
            Table("Images");
            Id(x => x.ID).GeneratedBy.Assigned();
            Map(x => x.Filename);
            Map(x => x.HashCode);
            Map(x => x.Height);
            Map(x => x.ImageSize);
            Map(x => x.URL);
            Map(x => x.Width);
            Map(x => x.ImageType);
            Map(x => x.ImageFormat);
            Map(x => x.Thumbnail);
        }

        #endregion Constructors
    }
}